abstract class $QUEUE{T} < $DISPENSER{T} |
---|
**** | Abstract queue |
$DISPENSER{_} | $STR | $CONTAINER{_} | $ELT{_} | $ELT |
A_QUEUE{_} | QUEUE{_} |
elt!: T; |
---|
**** | Return the elements in queue order (without removing them) i.e. return them in the same order as "remove" would |
enq(elt:T); |
---|
**** | Enqueue the element "elt" |
is_empty: BOOL; |
---|
**** | Is the queue empty |
top: T; |
---|
**** | Return the topmost element (alias for current) |